﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YYS
{
    /// <summary>
    /// 请求来源类型
    /// </summary>
    public enum ReqFromType
    {
        /// <summary>
        /// 网站
        /// </summary>
        Web = 4,
        /// <summary>
        /// 客户端
        /// </summary>
        Client = 2,
        /// <summary>
        /// 微信服务号
        /// </summary>
        WeiXin = 1,
        /// <summary>
        /// 微信企业号
        /// </summary>
        WeixinQiye = 3,
        /// <summary>
        /// 后台
        /// </summary>
        Background = 5,
        /// <summary>
        /// 公共
        /// </summary>
        Publish = 6,
        /// <summary>
        /// 微信小程序
        /// </summary>
        WeiXinMini = 7,
        /// <summary>
        /// 微信小程序WEB页面
        /// </summary>
        WeiXinMini_Web = 8,
        /// <summary>
        /// 默认
        /// </summary>
        Default = 0
    }

    /// <summary>
    /// 请求用户类型
    /// </summary>
    public enum ReqUserType
    {
        /// <summary>
        /// 普通班级家长
        /// </summary>
        ClassParent = 0,
        /// <summary>
        /// 普通班级学生
        /// </summary>
        ClassStudent = 1,
        /// <summary>
        /// 特色班家长
        /// </summary>
        VClassParent = 2,
        /// <summary>
        /// 特色班学生
        /// </summary>
        VClassStudent = 3,
        /// <summary>
        /// 全校老师
        /// </summary>
        SchoolTeacher = 4,
        /// <summary>
        /// 教师组老师
        /// </summary>
        GroupTeacher = 5,
        /// <summary>
        /// 关联某班级的老师
        /// </summary>
        ClassTeacher = 6,
        /// <summary>
        /// 教师关联教师组教师
        /// </summary>
        TVCTeacher = 7,
        /// <summary>
        /// 校领导
        /// </summary>
        SchoolMaster = 8
    }

    /// <summary>
    /// ContentType
    /// </summary>
    public struct ReqContentType
    {
        /// <summary>
        /// application/json
        /// </summary>
        public const string Json = "application/json";
        /// <summary>
        /// application/x-www-form-urlencoded
        /// </summary>
        public const string Form = "application/x-www-form-urlencoded";
        /// <summary>
        /// text/xml;charset=utf-8
        /// </summary>
        public const string Xml = "text/xml;charset=utf-8";
    }
}
